﻿<UserControl
  x:Class="Renren.Controls.FriendStreamBox"
  x:Name="FriendListBoxElement"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  FontFamily="{StaticResource PhoneFontFamilyNormal}"
  FontSize="{StaticResource PhoneFontSizeNormal}"
  Foreground="{StaticResource PhoneForegroundBrush}"

  d:DataContext="{d:DesignData /SampleData/GlobalViewModel.xaml}"
  xmlns:local="clr-namespace:Utils.UIEffect"
  xmlns:renren="clr-namespace:Renren.Controls"
  local:TiltEffect.IsTiltEnabled="True">

  <Grid x:Name="LayoutRoot">
    <renren:StreamBox x:Name="StreamBox" ItemsSource="{Binding FriendList}" TailIdleText="更多好友">
      <renren:StreamBox.ItemTemplate>
        <DataTemplate>
          <StackPanel Orientation="Horizontal" Margin="0,7,0,10" Tap="Friend_Tap">
            <Image Source="{Binding TinyUrl}" Margin="8,0,9,0" Width="50" Height="50"/>
            <TextBlock Text="{Binding Name}" TextWrapping="NoWrap" Margin="12,-8,0,0"
                       Style="{StaticResource PhoneTextExtraLargeStyle}"/>
          </StackPanel>
        </DataTemplate>
      </renren:StreamBox.ItemTemplate>
    </renren:StreamBox>
  </Grid>
</UserControl>
